{include file="public/header" /}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">邮件列表</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 30px;text-align: center">ID</th>
                        <th style="text-align: center">收件人邮箱</th>
                        <th style="text-align: center">邮件内容</th>
                        <th style="text-align: center">操作</th>
                    </tr>
                    </thead>
                    <tbody >
                    {volist name="list" id="val"}
                    <tr id="dels{$val.id}">
                        <td style="text-align: center">{$val.id}</td>
                        <td style="text-align: center">{$val.email}</td>
                        <td style="text-align: center">{$val.code}</td>
                        <td>
                            <a href="javascript:void(0)" class="layui-btn layui-btn-danger layui-btn-mini" onclick="del('{$val.id}')">删除</a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                {$page}
            </div>
        </div>
    </div>
</div>


{include file="public/footer" /}
<script>
    function del(id){
            window.location.href='{:url("del")}'+'?id='+id;
    }


</script>